import http from "@/utils/request.js";
export default {
	index_product_info(excludeValue) {
		return http.get('appIndex/hots', excludeValue, null);
	},
	category_info(excludeValue) {
		return http.get('appIndex/productInfo', excludeValue, null);
	},
	comment_list() {
		return http.get('comment/list', null, null);
	},
	search(excludeValue) {
		return http.get('appIndex/search', excludeValue, null);
	},
	account_and_auth() {
		return http.get('account/getAccountAndAuth', null, null);
	},
	wx_login(data) {
		return http.post('member/wxCodeLogin', data, null);
	},
	auth_verify(data) {
		return http.post('auth/verify', data, '认证中...');
	},
	bind_third_member_account(data) {
		return http.get('member/bindThirdMemberAccount', data, '绑定中...');
	},
	create_order(data) {
		return http.post('order/createOrder', data, '提交中...');
	},
	order_list(data) {
		return http.get('order/list', data, '努力加载中...');
	},
	order_info(id) {
		return http.get('order/info?id=' + id, null, '努力加载中...');
	},
	eid_token() {
		return http.get('member/getEidToken', null, '准备中...');
	},
	ali_eid_token() {
		return http.get('member/getFaceCertifyVerifyUrl', null, '准备中...');
	},
	eid_result(data) {
		return http.post('member/getEidResult', data, '结果获取中...');
	},
	ali_eid_result(certifyId) {
		return http.get('auth/getFaceCertifyQuery?certifyId=' + certifyId, null, '结果获取中...');
	},
	member_info() {
		return http.get('member/getMemberInfo', null, null);
	},
	del_member_info() {
		return http.get('member/delMemberInfo', null, '注销中...');
	},
	del_member_account(data) {
		return http.get('member/delThirdMemberAccount', data, '解绑中...');
	},
	update_account(accountType) {
		return http.post('account/update/' + accountType, null, '设置中...');
	},
	order_usual() {
		return http.get('order/usual', null, null);
	},
	bank_list() {
		return http.get('bank/list', null, null);
	},
	bind_bank_account(data) {
		return http.post('member/bindBankAccount', data, '绑定中...');
	},
	sms(mobile) {
		return http.post('member/sms', {
			mobile
		}, '发送中...');
	},
	bill_list(data) {
		return http.get('bill/list', data, '努力加载中...');
	},
	bill_list_receive(data) {
		return http.get('bill/listReceive', data, '努力加载中...');
	},
	bill_list_withdraw(data) {
		return http.get('bill/listWithdraw', data, '努力加载中...');
	},
	transfer(data) {
		return http.post('member/transfer', data, '提交中...');
	},
	ali_login(data) {
		return http.post('member/loginByAliEncryptedPhone', data, null);
	},
	dict_value(dictType, dictLabel) {
		return http.get('dict/getValue', {
			dictType,
			dictLabel
		}, null);
	},
	dict_json_value(dictType, dictLabel) {
		return http.get('dict/getJsonValue', {
			dictType,
			dictLabel
		}, null);
	},
};